Nibble encoding for improved reliability of non-volatile memory

ABSTRACT

A wireless device to include a non-volatile memory to execute an encoding scheme to provide single-cell error detection and correction on program operations in which the initial nibble value is Fh and on program operations that result in a nibble value of 0h. The non-volatile memory uses multiple writes to program a nibble more than once with non-zero data between erase cycles.

Technological developments permit digitization and compression of largeamounts of voice, video, imaging, and data information, which may betransmitted from laptops and other digital equipment to other deviceswithin the network. These developments in digital technology andenhancements to applications have stimulated a need for memory storageto handle the higher data volume supplied to these processing devices.Therefore, improved circuits and improved methods are needed to increasethe efficiency of memory operations.

BRIEF DESCRIPTION OF THE DRAWINGS

The subject matter regarded as the invention is particularly pointed outand distinctly claimed in the concluding portion of the specification.The invention, however, both as to organization and method of operation,together with objects, features, and advantages thereof, may best beunderstood by reference to the following detailed description when readwith the accompanying drawings in which:

FIG. 1 is a diagram that illustrates a wireless device storing data in anon-volatile memory that incorporates an encoding scheme to allow bittwiddle programming granularity in accordance with the presentinvention;

FIG. 2 shows two tables where one table lists first-write nibble codesand the other table shows alternative rewriteable nibble codes;

FIGS. 3-6 are diagrams that illustrate nibble code transitions for fourdifferent first-write codes;

FIGS. 7-9 are diagrams of that show comprehensive nibble codetransitions; and

FIG. 10 is a flow diagram that depicts a process and method used by analgorithm to manage the non-volatile memory encoding schemes.

It will be appreciated that for simplicity and clarity of illustration,elements illustrated in the figures have not necessarily been drawn toscale. For example, the dimensions of some of the elements may beexaggerated relative to other elements for clarity. Further, whereconsidered appropriate, reference numerals have been repeated among thefigures to indicate corresponding or analogous elements.

DETAILED DESCRIPTION

In the following detailed description, numerous specific details are setforth in order to provide a thorough understanding of the invention.However, it will be understood by those skilled in the art that thepresent invention may be practiced without these specific details. Inother instances, well-known methods, procedures, components and circuitshave not been described in detail so as not to obscure the presentinvention.

Developments in a number of different digital technologies have greatlyincreased the need to store and transfer data from one device across anetwork to another system. Technological developments permitdigitization and compression of large amounts of voice, video, imaging,and data information, which may be transmitted from laptops and otherdigital equipment to other devices within the network. The presentinvention may facilitate applications using higher resolution displays,better image capturing cameras, more storage capability, and newapplications for mobile video. As such, the present invention may beused in a variety of products with the claimed subject matterincorporated into desktop computers, laptops, smart phones, MP3 players,USB drives, memory cards, cameras, communicators and Personal DigitalAssistants (PDAs), medical or biotech equipment, automotive safety andprotective equipment, automotive infotainment products, etc. However, itshould be understood that the scope of the present invention is notlimited to these examples.

FIG. 1 is a diagram that illustrates an embodiment that couplesantenna(s) to a transceiver 12 to accommodate modulation/demodulation.Analog transceiver 12 is coupled with a processor 20 to processfunctions, execute applications and store results. The processor mayinclude baseband and applications processing functions and utilize oneor more processor cores 16 and 18 to allow processing workloads to beshared across the cores. The processor may transfer data through aninterface 22 to memory storage in a system memory. In accordance withembodiments of the present invention a policy manager 24 is includedwithin a Non-Volatile Memory (NVM) 26.

The memory cells of the non-volatile memory 26 are multilevel cells(MLC) that greatly increase the density of the memory device. Such MLCcells take advantage of the analog nature of a traditional flash cell toenable storage of multiple bits per memory cell by charging anelectrically isolated polysilicon floating gate of the transistor todifferent levels.

After erasure the threshold voltage of every memory cell transistor inthe non-volatile memory may be measured to verify an erased device. Theerased state for each cell may be indicated by a designation of “L0”.Then, by using a controlled programming technique a precise amount ofcharge may be placed on the floating gate of selected memory celltransistors to increase the charge to the next charge state or nextrange that is indicated by a designation of “L1”. Additional programmingto the next charge state places selected memory cell transistors in arange designated as “L2”. The final programmed state or range may bedesignated as “L3”. Thus, four levels of stored gate charge aremanifested as four different threshold voltage changes of the memorycell transistor to provide cell storage of two data bits.

Non-volatile memory 26 may be divided or partitioned into logicalblocks, pages or sectors. Non-volatile memory allows only unidirectionalprogramming, i.e., programming from an erased condition L0 to theprogrammed charge states of L1, L2, and L3. Thus, once data is writtento a memory cell the entire block, page or sector needs to be erasedbefore modified data is written to this same block, page, or sector, aconstraint that is a time consuming sequence of operations and alsoreduces the life of the non-volatile memory.

In accordance with various features of the present invention, anencoding controller 24 is located within non-volatile memory 26 toalleviate the number of erase operations performed on the memory. Onefeature of the present invention provides an encoding scheme that allowsbit twiddle programming granularity. In accordance with another feature,the present invention provides single-cell error detection andcorrection on the first write to a nibble as well as writes that bringthe nibble data value to Oh. FIGS. 2-8 illustrate steps and processesthat an algorithm executed by encoding controller 24 would use to managenon-volatile memory 26.

The table shown in FIG. 2 describes first-write nibble codes that may beprogrammed to memory cells for nibbles 0h through Fh, and in addition,alternative rewriteable nibble codes. Nibble values 0h-Fh are shown inthe rows of the table along with the code represented by the four memorycells Cell-3, Cell-2, Cell-1 and Cell-0, where each memory cell storesone of the level values designated as L3, L2, L1, or L0. By way ofexample, nibble 0h in the first row of the table is assigned a value ofL3, L3, L3, and L3, whereas nibble Fh in the last row is assigned avalue of L0, L0, L0, and L0. As seen in the figure, each row in thetable presents four memory cells programmed with one of four values thattaken collectively; provide the code for one nibble of data. Note thatthe values for the sixteen first-write nibble codes are chosen to ensurethat the codes are orthogonal. Put another way, the nibble code ischosen so that no more than one value stored in a memory cell of a givennibble code can match a stored value in corresponding cells of the otherfifteen nibble codes.

It should be noted that there are a number of nibble code assignmentsthat meet certain criteria that is stated within this description. Forexample, interchanging the columns of the nibble codes in the tablespresented in FIG. 2 produce equivalent encoding schemes. Similarly,interchanging nibble values may also produce equivalent encodingschemes.

One criteria of the encoding scheme is that four of the sixteenfirst-write nibble codes must be rewritable to six different non-zerocodes. The figure shows the nibble value Eh having a code of L1, L0, L3,and L1; the nibble value Dh having a code of L1, L3, L1, and L0; thenibble value Bh having a code of L0, L1, L1, and L3; and the nibblevalue 7h having a code of L3, L1, L0, and L1. These nibble values of Eh,Dh, Bh, and 7h in this solution set are each rewritable to six differentnon-zero codes, and three of these six codes are rewritable to twodifferent non-zero codes. Note that the nibble values of Eh, Dh, Bh, and7h have exactly three “1” bits and comprise one L0, two L1's and one L3value. All of these rewritten codes must be either a one-cell-error codeof the first-write nibble code with the same nibble value, or a nibblecode that is not a one-cell-error code of any of the sixteen first-writenibble codes.

FIG. 3 illustrates the first of the four nibble values (first presentedin FIG. 2) as Eh and shows how the code of L1, L0, L3, and L1 isrewriteable to six different non-zero codes for that nibble value.Specifically, the six non-zero codes are shown as L2, L1, L3, and L1having a nibble value of Ch; the code of L2, L2, L3 and L1 having anibble value of Ah; and the code of L2, L0, L3, and L2 having a nibblevalue of 6h. A memory cell having a level value that is underscoredmeans that the stored value is encoded with a single cell error. If allfour cells are underscored then the nibble code is one of the alternatenibble codes listed in FIG. 2.

These three nibble values can collectively be rewritten to the otherthree nibble values of 8 (encoded as L2, L2, L3, L1), 4 (encoded as L2,L2, L3, L2), and 2 (encoded as L3, L2, L3, L2). Since the latter threenibble values can be rewritten by the former three nibble values, it hasbeen demonstrated that the nibble value of Eh can be rewritten to sixdifferent non-zero nibble codes. This also demonstrates that three ofthe nibble values are rewritable to non-zero nibble values. Furthermore,FIG. 3 shows that each of these rewritable nibbles can be rewritten toexactly two different non-zero nibbles.

FIG. 4 illustrates the second of the four nibble values (first presentedin FIG. 2) as Dh and shows how the code of L1, L3, L1, and L0 isrewriteable to six different non-zero codes for that nibble value.Specifically, the six non-zero codes are shown as L2, L3, L2, and L0having a nibble value of Ch; the code of L1, L3, L2 and L1 having anibble value of 9h; the code of L1, L3, L2, and L2 having a nibble valueof 5h. Again, a memory cell having a level value that is underscoredmeans that the stored value has an error.

These three nibble values can collectively be rewritten to the otherthree nibble values of 8h (encoded as L2, L3, L2, L3), 4h (encoded asL2, L3, L3, L2), and 1h (encoded as L1, L3, L2, L3). Since the latterthree nibble values can be rewritten by the former three nibble values,it has been demonstrated that the nibble value of Dh can be rewritten tosix different non-zero nibble codes. This also demonstrates that threeof the nibble values are rewritable to non-zero nibble values.Furthermore, FIG. 4 shows that each of these rewritable nibbles can berewritten to exactly two different non-zero nibbles.

FIG. 5 illustrates the third of the four nibble values (first presentedin FIG. 2) as Bh and shows how the code of L0, L1, L1, and L3 isrewriteable to six different non-zero codes for that nibble value. Thesix non-zero codes are shown as L2, L2, L1, and L3 having a nibble valueof Ah; the code of L0, L2, L2 and L3 having a nibble value of 9h; thecode of L1, L2, L1, and L3 having a nibble value of 3h.

These three nibble values of Ah, 9h, and 3h can collectively berewritten to the other three nibble values of 8h encoded as L2, L3, L2,L3, 2h encoded as L3, L2, L1, L3, and 1h encoded as L3, L2, L2, L3.Since the latter three nibble values can be rewritten by the formerthree nibble values, it has been demonstrated that the nibble value ofBh can be rewritten to six different non-zero nibble codes. This alsodemonstrates that three of the nibble values are rewritable to non-zeronibble values. FIG. 5 shows that each of these rewritable nibbles can berewritten to exactly two different non-zero nibble values.

FIG. 6 illustrates the fourth of the four nibble values (first presentedin FIG. 2) as 7h and shows how the code of L3, L1, L0, and L1 isrewriteable to six different non-zero codes for that nibble value. Thesix non-zero codes are shown as L3, L1, L1, and L2 having a nibble valueof 6h; the code of L3, L1, L2 and L2 having a nibble value of 5h; thecode of L3, L2, L0, and L2 having a nibble value of 3h.

The three nibble values of 6h, 5h, and 3h can collectively be rewrittento the other three nibble values of 4h (encoded as L3, L1, L2, L3), 2h(encoded as L3, L2, L3, L2), and 1h (encoded as L3, L2, L2, L3). Again,since the latter three nibble values can be rewritten by the formerthree nibble values it has been demonstrated that the nibble value of 7hcan be rewritten to six different non-zero nibble codes. This alsodemonstrates that three of the nibble values are rewritable to non-zeronibble values. Furthermore, FIG. 6 shows that each of these rewritablenibbles can be rewritten to exactly two different non-zero nibblevalues.

Of the four nibble values Eh, Dh, Bh, and 7h in this solution set thatare rewritable to six different non-zero codes, it has been demonstratedthat the criteria of the encoding scheme requiring that three of thesecodes must be successively rewritable to two different non-zero codeshas been satisfied. Another criterion that has been clearly satisfied isthat all of these rewritten codes must be either a one-cell-error codeof the first-write nibble code with the same nibble value, or a nibblecode that is not a one-cell-error code of any of the sixteen first-writenibble codes.

FIGS. 7-9 are diagrams of the comprehensive nibble code transitions inaccordance with the present invention. Shown in the figures are thetransitions from the erase state of L0, L0, L0, and L0 for the nibblevalue Fh to the other nibble values in descending order of Eh, Dh, Ch,Bh, Ah, 9h, 8h, 7h, 6h, 5h, 4h, 3h, 2h, 1, and 0h. Thus, the nibblecodes for the nibble values listed in FIGS. 7-9 are shown withtransitions to the all zero code value denoted by L3, L3, L3, and L3.Note that the figures also include the transitions previously describedin FIGS. 2-6.

Another criterion for the encoding scheme is that six of the otherfirst-write nibble codes must be rewritable to two different non-zerocodes. Briefly referring to FIGS. 7-9 note that the six nibble codeshaving the following nibble values: Ch, Ah, 9h, 6h, 5h, and 3h arerewritable to two different non-zero codes. Again, all of theserewritten codes must be either a one-cell-error code of the first-writenibble code with the same nibble value, or a nibble code that is not aone-cell-error code of any of the sixteen first-write nibble codes. Alsonote that the nibble values of Ch, Ah, 9h, 6h, 5h, and 3h have exactlytwo “1” bits and the average cell level is 1½, Ch→(2+1+3+0)/4+1½ andAh→(2+2+1+1)/4+1½. Further note that an alternative rewritable nibblecode is made of one L0, two L2's, and one L3.

Yet another criterion for the encoding scheme is that fifteen of thefirst-write nibble codes must be rewritable to the sixteenth nibblecode. This sixteenth nibble code is defined as the zero code of L3, L3,L3 and L3 for the nibble value 0h. Clearly shown in FIGS. 7-9 are thetransitions of Fh, Eh, Dh, Ch, Bh, Ah, 9h, 8h, 7h, 6h, 5h, 4h, 3h, 2h,and 1 to the zero code, thus fulfilling this criteria.

FIG. 10 is a flow diagram that defines rules for encoding memory cellsto provide solution sets to mathematical problems. In some embodiments,method 1000, or portions thereof, is performed by encoding controller 24operating as a state machine, a processor, or an electronic system.Method 1000 is not limited by the particular type of apparatus, softwareelement, or system performing the method. Note that the various actionsin method 1000 may be performed in the order presented, or may beperformed in a different order.

Method 1000 includes an algorithm process 1002 where stored values arechosen for the sixteen first-write nibble codes to ensure that the codesare orthogonal. In process 1004 four of those sixteen first-write nibblecodes must be rewritable to six different non-zero codes. In process1006 each of the four nibble codes must be rewritable to three differentnibble codes, and each of these resulting codes must be rewritable totwo different non-zero codes. In process 1008 six of the otherfirst-write nibble codes must also be rewritable to two differentnon-zero codes. In process 1010 fifteen of the first-write nibble codesmust be rewritable to the sixteenth nibble code that is defined as thezero code. Block 1012 stipulates that all rewritten codes must be eithera one-cell-error code of the first-write nibble code with the samenibble value, or be a nibble code that is not a one-cell-error code ofany of the sixteen first-write nibble codes.

By using the encoding scheme in accordance with the present invention,error correction is provided with an advantage over SBC encoding. Theadvantage of the present encoding scheme is that it provides single-cellerror detection and correction on program operations in which theinitial nibble value is Fh and on program operations that result in anibble value of 0h. In Flash file systems, nibbles are infrequentlyprogrammed twice to non-zero data between erase cycles, and therefore,very few bits of data are not protected with error correction using thisinvention. Various embodiments have been presented that use multiplewrites to an advantage and make it possible to program a nibble morethan once with non-zero data between erase cycles.

Although prior art byte twiddle allows single-cell error detection,correction, and the flexibility to program a given byte multiple timesbetween erase cycles, that technology only permits an eight-bitboundary. In contrast, the present invention provides first write errorprotection to a four-bit boundary, and further, bit pairs may beprogrammed with single-cell error detection and correction for everyprogram operation. Also, the present invention encodes nibble valueswith three “1” bits, namely Eh, Dh, Bh, and 7h, for maximumreprogram-ability. The present invention encodes the nibble valueshaving a “1” bit, namely 8h, 4h, 2h, and 1h, with minimalreprogram-ability. This encoding scheme allows Nibble Twiddle to emulateSBC programming from a user perspective.

In addition, whereas prior art Nibble Twiddle makes use of mapped nibblestates, the present invention utilizes unmapped nibble states. Thepresent invention also enables a useful amount of error correction whichsignificantly enhances the overall reliability of the non-volatilememory in its system application and reliability is improved becausesignificantly fewer memory cells are left unprotected by errorcorrection.

By now it should be apparent that embodiments of the present inventionhave provided an encoding scheme for a multi-level cell (MLC)non-volatile memory. Criteria for encoding the memory cells has beendescribed to ensure the appropriate solution sets lead to first writeerror protection on a four-bit boundary and bit pairs may be programmedwith single-cell error detection and correction for every programoperation.

While certain features of the invention have been illustrated anddescribed herein, many modifications, substitutions, changes, andequivalents will now occur to those skilled in the art. It is,therefore, to be understood that the appended claims are intended tocover all such modifications and changes as fall within the true spiritof the invention.

1. A wireless device, comprising: a multicore processor; and anon-volatile memory device coupled to the multicore processor and havingan encoder controller to provide first write error protection to afour-bit boundary.
 2. The wireless device of claim 1 wherein bit pairsare programmed with single-cell error detection and correction for everyprogram operation.
 3. The wireless device of claim 1 wherein the encodercontroller executes an encoding scheme that has bit twiddle programminggranularity.
 4. The wireless device of claim 1 further comprising:single-cell error detection and correction on a first write to a nibbleand transition writes that bring a nibble data value to a zero value. 5.A wireless device, comprising: a multicore processor; and a non-volatilememory device coupled to the multicore processor and having an encodercontroller to program a nibble more than once with non-zero data betweenerase cycles.
 6. The wireless device of claim 5 wherein the encodercontroller executes an encoding scheme where sixteen first-write nibblecodes are orthogonal codes.
 7. The wireless device of claim 6 wherein nomore than one cell of a given nibble code matches corresponding cells ofother nibble codes in the sixteen first-write nibble codes.
 8. Thewireless device of claim 6 wherein rewritten codes are a one-cell-errorcode of the first-write nibble code with a same nibble value.
 9. Thewireless device of claim 6 wherein a nibble code is not a one-cell-errorcode of any of the sixteen first-write nibble codes.
 10. The wirelessdevice of claim 5
 11. The wireless device of claim 5 further including:12. A method to dynamically encode a memory device connected to aprocessor, comprising: using an encoder controller within the memorydevice to execute an encoding scheme where sixteen first-write nibblecodes are orthogonal codes.
 13. The method of claim 12 further includingrewriting four of the sixteen first-write nibble codes to six differentnon-zero codes, where three of these codes are successively rewritableto two different non-zero codes.
 14. The method of claim 13 furtherincluding, by the encoder controller, ensuring that all of the rewrittenfour of the sixteen first-write codes are a one-cell-error code of afirst-write nibble code with a same nibble value.
 15. The method ofclaim 14 further including, by the encoder controller, providing thatthe four of the sixteen first-write codes have nibble values of Eh, Dh,Bh, and 7h.
 16. The method of claim 12 further including, by the encodercontroller, ensuring that a nibble code is not a one-cell-error code ofany of the sixteen first-write nibble codes.
 17. The method of claim 12wherein, in addition to the four of the sixteen first-write codes, theencoder controller further includes providing six of the otherfirst-write nibble codes are rewritable to two different non-zero codes.18. The method of claim 17 wherein the six of the other first-writenibble codes have the nibble values of Ch, Ah, 9h, 6h, 5h, and 3h. 19.The method of claim 12 wherein the encoder controller is transitioningfifteen of the first-write nibble codes to be rewritable to thesixteenth nibble code.
 20. The method of claim 19 wherein the sixteenthnibble code is the zero code.